import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'lib-flexible'
// import style
import 'swiper/css/swiper.css'
import Mint from 'mint-ui'
//引入 http.js 文件：封装axios
import './http'
import '@/permission'
import moment from 'moment'

Vue.filter('dateformat', function (dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
  return moment(dataStr).format(pattern)
})

Vue.use(Mint)

Vue.use(ElementUI)

// 全局引入组件
// import mycom from './components/mycom.vue'
// Vue.component('mycom',mycom)
Vue.use(VueAwesomeSwiper /* { default options with global component } */)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
